package main;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JMenuBar;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JMenuItem;
import java.awt.Component;
import javax.swing.Box;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;

public class MainWindow {

	private JFrame frmJfinance;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MainWindow window = new MainWindow();
					window.frmJfinance.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public MainWindow() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmJfinance = new JFrame();
		frmJfinance.setTitle("JFinance");
		frmJfinance.setBounds(100, 100, 800, 600);
		frmJfinance.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JMenuBar menuBar = new JMenuBar();
		frmJfinance.setJMenuBar(menuBar);
		frmJfinance.getContentPane().setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		frmJfinance.getContentPane().add(panel, BorderLayout.NORTH);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		frmJfinance.getContentPane().add(tabbedPane, BorderLayout.CENTER);
		
		JPanel summaryPanel = new JPanel();
		tabbedPane.addTab("Summary", null, summaryPanel, null);
		
		JTabbedPane addPanel = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.addTab("Add", null, addPanel, null);
		
		JPanel tablePanel = new JPanel();
		tabbedPane.addTab("Table", null, tablePanel, null);
		
		JPanel barPanel = new JPanel();
		tabbedPane.addTab("Bar Graph", null, barPanel, null);
		
		JPanel piePanel = new JPanel();
		tabbedPane.addTab("Pie Graph", null, piePanel, null);
	}

}
